package com.salt.modules.sys.web;

import com.salt.common.json.AjaxJson;
import com.salt.core.log.annotation.OperationRecord;
import com.salt.core.web.BaseController;
import com.salt.modules.sys.entity.Company;
import com.salt.modules.sys.service.CompanyService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description 升级账号
 * @Author salt
 * @Date 2022/9/13
 * @Version 1.0.1
 */
@RestController
@AllArgsConstructor
@RequestMapping("sys/upgrade/account")
public class UpgradeAccountController extends BaseController {

    private final CompanyService companyService;

    @PostMapping("save")
    @OperationRecord(service = "系统服务", module = "账号升级", operation = "新增", description = "")
    public AjaxJson save(Company company) {
        return companyService.upgradeAccount(company);
    }
    

}
